< previous page page_126 next page >

Page 126
0126-01.jpg
Figure 6.12
The CoolBar control is in a new group called
Microsoft Windows Common Controls - 36.0.
In the following sections, you discover how to include both types of toolbars in your program.
Getting the Images for Your Toolbar
The first step in creating any toolbar is adding the images that will be displayed on the toolbar to an ImageList control. Follow these steps to get those images:
1. Draw an ImageList control on your form, and give it a unique name. Because the ImageList control is not visible to the users, its size is set by Visual Basic. No matter what size you draw it on the form, it always appears as a little icon at designtime.
2. To add bitmap images to the control, open its Property Pages dialog box either by pressing the ellipsis ( . . . ) button of the Custom property in the Properties window, or by right-clicking the ImageList control and selecting Properties.
From this dialog box, shown in Figure 6.13, you can add images from graphics files (icons and bitmaps) stored on your hard drive.
0126-02.jpg
Figure 6.13
At designtime, you can add images to the ImageList
control by using the Images tab of the Property Pages dialog box.

 
< previous page page_126 next page >